package adv1;

public class StrTest3 {

	public static void main(String[] args) {

		StringBuffer sb = new StringBuffer();
		sb.append(1 > 2).append("We change lives").append(3.0 / 7)
				.append(new char[] { 'a', 'b', 'c' });
		System.out.println(sb);
		sb.insert(5, "张洋是个大帅锅");
		System.out.println(sb);
		sb.delete(10, 20);
		System.out.println(sb);
		// 拼接1万次，比较String和StringBuffer所有时间
	}

}
